[@b.head/]

[#assign xuefei=0]
[#assign baoxianfei=0]
[#assign total=0]
[#list schoolings as payment]
  [#assign xuefei=xuefei + math.parse(payment.xuefei)]
  [#assign baoxianfei=baoxianfei + math.parse(payment.baoxianfei)]
  [#assign total=total + math.parse(payment.total)]
[/#list]
[#assign xuefei2=0]
[#assign baoxianfei2=0]
[#assign total2=0]
[#list schoolings as payment]
  [#assign xuefei2=xuefei2 + math.parse(payment.xuefei2)]
  [#assign baoxianfei2=baoxianfei2 + math.parse(payment.baoxianfei2)]
  [#assign total2=total2 + math.parse(payment.total2)]
[/#list]
<table class="table  table-hover table-bordered">
<tr>
	<td style="font-size:14px;width:11%">学费:</td>
	<td style="font-size:14px;color:red;width:11%">${xuefei}</td>
	<td style="font-size:14px;color:blue;width:11%">${xuefei2}</td>
	<td style="font-size:14px;width:11%">保险费:</td>
	<td style="font-size:14px;color:red;width:11%">${baoxianfei}</td>
	<td style="font-size:14px;color:blue;width:11%">${baoxianfei2}</td>
	<td style="font-size:14px;width:11%">总计:</td>
	<td style="font-size:14px;color:red;width:11%">${total}</td>
	<td style="font-size:14px;color:blue;width:11%">${total2}</td>
</tr>
*红色为应交，蓝色为已交。
</table>

[@b.grid items=schoolings var="schooling" caption=caption style="table-layout:fixed"]
  [@b.gridbar]
	   bar.addItem("修改",action.edit());
	   var m=bar.addMenu("导入",action.method("importForm"));
	   m.addItem("下载导入模版",action.method("importTemplate",null,null,false));
	   bar.addItem("导出",action.method("exportpayment",null,null,false));
  [/@]
  [@b.row]
    [@b.boxcol width="2%" name="schooling.id"/]
    [@b.col title="序号" width="2%"] ${schooling_index+1}[/@]
    [@b.col title="学号"  width="6%" property="code" /]
    [@b.col title="姓名"  width="12%" property="name" /]
    [@b.col title="奖学金生"  width="2%" property="scholarship.name" /]
    [@b.col title="应交学费"  width="5%" property="xuefei" /]
    [@b.col title="已交学费"  width="5%" property="xuefei2" /]
    [@b.col title="应交住宿费"  width="5%" property="zhusufei" /]
    [@b.col title="已交住宿费"  width="5%" property="zhusufei2" /]
    [@b.col title="应交保险费"  width="5%" property="baoxianfei" /]
    [@b.col title="已交保险费"  width="5%" property="baoxianfei2" /]
    [@b.col title="应交一卡通费"  width="5%" property="yikatong" /]
    [@b.col title="已交一卡通费"  width="5%" property="yikatong2" /]
    [@b.col title="应交借书押金"  width="5%" property="jieshu" /]
    [@b.col title="已交借书押金"  width="5%" property="jieshu2" /]
    [@b.col title="应交总计"  width="5%" property="total" /]
    [@b.col title="已交总计"  width="5%" property="total2" /]
    [@b.col title="学生类型"  width="3%" property="stdtype.name" /]
    [@b.col title="学费类型"  width="3%" property="paytype.name" /]
    [@b.col title="交费状态"  width="5%" property="paystate.name" /]
    [@b.col title="发票号"  width="5%" property="invoice" /]
    [@b.col title="交费时间"  width="6%" property="time" /]   
    [@b.col title="备注"  width="5%" property="notes" /]
  [/@]
[/@]

[@b.foot/]